package com.mxpio.erp.common.plan.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @Author : wpp
 * @Datetime : 2023/4/10 17:43
 * @Desc :
 * @Modor :  Modifytime:
 * @modDesc : 销售预测冲销明细
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_PLAN_SP_OF")
@Schema(description = "销售预测-销售订单冲销明细")
public class SalePredictionOffsettingFlow  extends BaseEntity {

    @Id
    @Column(name = "ID_", updatable = false)
    @Generator
    @Schema(description = "流水号")
    private String id;

    @Column(name = "ITEM_CODE_")
    @Schema(description = "物料代码")
    private String itemCode;

    @Column(name = "QUANTITY_")
    @Schema(description = "执行数量")
    private BigDecimal quantity;

    @Column(name = "SO_BIZ_NO_")
    @Schema(description = "销售单单号")
    private String soBizNo;

    @Column(name = "SO_BIZ_LINE_NO_")
    @Schema(description = "销售单行号")
    private String soBizLineNo;

    @Column(name = "SP_BIZ_NO_")
    @Schema(description = "销售预测单单号")
    private String spBizNo;

    @Column(name = "SP_BIZ_LINE_NO_")
    @Schema(description = "销售预测单行号")
    private String spBizLineNo;

    @Column(name = "PN_CODE_")
    @Schema(description = "客户编号")
    private String pnCode;

    @Column(name = "PN_NAME_")
    @Schema(description = "客户名称")
    private String pnName;
}
